package com.mqbest.whome;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		Thread loginThread = new Thread(new LoginActivityRun());
		loginThread.start();
	}
	
	
	class LoginActivityRun implements Runnable{

		@Override
		public void run() {
			// TODO Auto-generated method stub
			try{
				Thread.sleep(1000);				
				Intent LoginActIntent =new Intent(MainActivity.this, LoginActivity.class);
				startActivity(LoginActIntent);
				overridePendingTransition(R.layout.a2, R.layout.a1);
				finish();
				
			}catch (Exception e) {
				// TODO: handle exception
			}
		}	
	}

}
